package carltechnology.com.mahjonggame.mode.impl;

import carltechnology.com.mahjonggame.mode.AbstractData;

/**
 * Created by WZTCM on 2016/6/1.
 */
public class MahjongGameMode extends AbstractData {
    private int id;
    private String names;
    private String date;
    private MahjongGameMode(int id,String names,String date){
        this.id = id;
        this.names = names;
        this.date = date;
    }
    @Override
    public int getId() {
        return id;
    }

    @Override
    public String[] getName() {
        return names.split("_");
    }

    @Override
    public String getSimpleName() {
        return names;
    }

    @Override
    public String getDate() {
        return date;
    }
    public static MahjongGameMode _of(int id,String names,String date){
        return new MahjongGameMode(id,names,date);
    }
    @Override
    public String toString() {
        return "MahjongGameMode{" +
                "id=" + id +
                ", names='" + names + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
